<link rel="stylesheet" href="<?php echo URL::base() ?>media/vendor/css/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?php echo URL::base() ?>media/vendor/artdialog/skins/default.css" type="text/css" media="all" />
<link href="<?php echo URL::base() ?>media/vendor/css/ui-lightness/jquery-ui-1.10.4.custom.css" rel="stylesheet">
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-1.10.2.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-ui-1.10.4.custom.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery.ui.datepicker-zh-TW.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/Validform_v5.3.2_ncr_min.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/artdialog/jquery.artDialog.js"></script>
<script type="text/javascript">
$(function() {
    //$( document ).tooltip({ hide: { effect: "explode", duration: 1000 } });
	$(".supplierform").Validform({
		        tiptype:2,
		        ajaxPost:true,
				callback:function(data){
						setTimeout(function(){
							$.Hidemsg(); //公用方法关闭信息提示框;显示方法是$.Showmsg("message goes here.");
				window.location.reload();
						},2000);
				}
    });
	 $(".upSuppForm").Validform({
	        tiptype:2,});
})

    
</script>
<style type="text/css">
.table-striped tbody>tr:nth-child(odd)>td, .table-striped tbody>tr:nth-child(odd)>th{ background-color:#ffffff;}
</style>
<div class="row">
  <div class="span11">
  <form class="supplierform" method="post" action="<?php  echo URL::base() ?>inventory/rate">
            <table class="table " style=" width:75%;">
                <tr>
                    <td>*</td>
                    <td > 币种：</td>
                    <td><input type="text"  value=""  name="name" class="inputxt" datatype="*" /></td>
                    <td width="200"><div class="Validform_checktip"></div></td>
                </tr>
                <tr>
                    <td>*</td>
                    <td >人民币汇率：</td>
                    <td><input type="text"  value=""  name="rate1" class="inputxt"  datatype="/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/"  errormsg='汇率填写错误'  /></td>
                    <td><div class="Validform_checktip"></div></td>
                </tr>
                   <tr>
                    <td>*</td>
                    <td >美元汇率：</td>
                    <td><input type="text"  value=""  name="rate2" class="inputxt"  datatype="/^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$/"  errormsg='汇率填写错误'  /></td>
                    <td><div class="Validform_checktip"></div></td>
                </tr>
                  <tr>
                    <td colspan="4" style=" padding-left:210px;">
                       <input type="submit" value="提 交" class="btn btn-info">
                   </td>
                </tr>
            </table>
        </form>
        </div>
  <div class="span4">
  </div>
</div>
	<div class="row">
  <div class="span11">
  <h2>汇率上传：</h2>
  <form class="upSuppForm" method='post' action='<?php echo URL::site() ?>inventory/rate/upload_rate' enctype="multipart/form-data">
  <table class="table table-striped">
     <tr>
       <td class="need"></td>
                    <td>批量上传</td>
                    <td> <input type='file'   style="line-height: 0px;" name='xls' class="inputxt" datatype="/.+\.xls/"  nullmsg="请选择上传文件"  errormsg="文件格式只能为xls"/></td>
                    <td><div class="Validform_checktip"></div></td>
      </tr>
      <tr>
	       <td class="need"></td>
	       <td></td>
	       <td colspan="2">
	       
	       </td>
      </tr>
     </table>
      <input type='submit' value='上传' class='btn btn-success'  id="upload"/>
       <div class="btn btn-success"><a href="<?php echo URL::site() ?>inventory/rate/down_temple" style="color: #ffffff">下载模版<a/></div>
  </form>
  
  </div>
</div>
   
